CREATE TABLE [dbo].[DnnProduct_ScheduleItemSettings]
(
[ScheduleID] [int] NOT NULL,
[SettingName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SettingValue] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_ScheduleItemSettings] ADD CONSTRAINT [PK_DnnProduct_ScheduleItemSettings] PRIMARY KEY CLUSTERED  ([ScheduleID], [SettingName]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_ScheduleItemSettings] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_ScheduleItemSettings_DnnProduct_Schedule] FOREIGN KEY ([ScheduleID]) REFERENCES [dbo].[DnnProduct_Schedule] ([ScheduleID]) ON DELETE CASCADE NOT FOR REPLICATION
GO
